package com.xxmw.transaction.model.app;

import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: xiepeng
 * @Date: 2020-02-27 15:30
 * 交易所数据存储实体类
 **/
@Getter
@Setter
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
public class BoursePrice {

    /**
     * 卖一数据
     */
    private BigDecimal sellPrice;

    /**
     * 卖一数量
     */
    private BigDecimal sellNum = BigDecimal.ZERO;

    /**
     * 买一价格
     */
    private BigDecimal buyPrice;

    /**
     * 买一数量
     */
    private BigDecimal buyNum = BigDecimal.ZERO;

    /**
     * 交易所数据
     */
    private String data;

    /**
     * 更新时间
     */
    private Date updateTime;

    @Override
    public String toString() {
        return "BoursePrice{" +
                "sellPrice=" + sellPrice +
                ", buyPrice=" + buyPrice +
                '}';
    }
}
